package com.ruoyi.bussiness.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bussiness.mapper.OwnerFundMonitorMapper;
import com.ruoyi.bussiness.domain.OwnerFundMonitor;
import com.ruoyi.bussiness.service.IOwnerFundMonitorService;

/**
 * 基金监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-10-29
 */
@Service
public class OwnerFundMonitorServiceImpl implements IOwnerFundMonitorService 
{
    @Autowired
    private OwnerFundMonitorMapper ownerFundMonitorMapper;

    /**
     * 查询基金监控
     * 
     * @param id 基金监控主键
     * @return 基金监控
     */
    @Override
    public OwnerFundMonitor selectOwnerFundMonitorById(Long id)
    {
        return ownerFundMonitorMapper.selectOwnerFundMonitorById(id);
    }

    /**
     * 查询基金监控列表
     * 
     * @param ownerFundMonitor 基金监控
     * @return 基金监控
     */
    @Override
    public List<OwnerFundMonitor> selectOwnerFundMonitorList(OwnerFundMonitor ownerFundMonitor)
    {
        return ownerFundMonitorMapper.selectOwnerFundMonitorList(ownerFundMonitor);
    }

    /**
     * 新增基金监控
     * 
     * @param ownerFundMonitor 基金监控
     * @return 结果
     */
    @Override
    public int insertOwnerFundMonitor(OwnerFundMonitor ownerFundMonitor)
    {
        return ownerFundMonitorMapper.insertOwnerFundMonitor(ownerFundMonitor);
    }

    /**
     * 修改基金监控
     * 
     * @param ownerFundMonitor 基金监控
     * @return 结果
     */
    @Override
    public int updateOwnerFundMonitor(OwnerFundMonitor ownerFundMonitor)
    {
        ownerFundMonitor.setUpdateTime(DateUtils.getNowDate());
        return ownerFundMonitorMapper.updateOwnerFundMonitor(ownerFundMonitor);
    }

    /**
     * 批量删除基金监控
     * 
     * @param ids 需要删除的基金监控主键
     * @return 结果
     */
    @Override
    public int deleteOwnerFundMonitorByIds(Long[] ids)
    {
        return ownerFundMonitorMapper.deleteOwnerFundMonitorByIds(ids);
    }

    /**
     * 删除基金监控信息
     * 
     * @param id 基金监控主键
     * @return 结果
     */
    @Override
    public int deleteOwnerFundMonitorById(Long id)
    {
        return ownerFundMonitorMapper.deleteOwnerFundMonitorById(id);
    }
}
